package com.sky.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sky.dto.SetmealPageQueryDTO;
import com.sky.entity.Setmeal;
import com.sky.vo.SetmealVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 套餐 Mapper 接口
 * </p>
 *
 * @author wang
 * @since 2023-07-06
 */
@Mapper
public interface SetmealMapper extends BaseMapper<Setmeal> {

    Page<SetmealVO> pageSetmeal(Page<SetmealVO> setmealVOPage,@Param("dto") SetmealPageQueryDTO setmealPageQueryDTO);

    //停售菜品时也要停售相关套餐
    void upStatus(Long id);

    Integer selectCountByStatus(int status);
}
